//
//  NSObject+GetTheController.h
//  objective_c_language
//
//  Created by 王玉龙 on 2018/6/23.
//  Copyright © 2018年 longlong. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSObject (GetTheController)

/*
 * 获取当前的 ViewController
 */
+ (UIViewController *)getCurrentViewController;

@end


@interface UIView (Category)

/*
 * 获取view对应的控制器
 */
- (UIViewController *_Nullable)viewController;


@end
